import request from '@/utils/request'

// 查询投标进程管理列表
export function listBid_project_workflow(query) {
  return request({
    url: '/business/bid_project_workflow/list',
    method: 'get',
    params: query
  })
}

// 查询投标进程管理详细
export function getBid_project_workflow(workflowId) {
  return request({
    url: '/business/bid_project_workflow/' + workflowId,
    method: 'get'
  })
}

// 查询投标进程管理详细
export function getActive_workflow() {
  return request({
    url: '/business/bid_project_workflow/getActiveWorkflow' ,
    method: 'get'
  })
}

// 新增投标进程管理
export function addBid_project_workflow(data) {
  return request({
    url: '/business/bid_project_workflow',
    method: 'post',
    data: data
  })
}

// 修改投标进程管理
export function updateBid_project_workflow(data) {
  return request({
    url: '/business/bid_project_workflow',
    method: 'put',
    data: data
  })
}

// 删除投标进程管理
export function delBid_project_workflow(workflowId) {
  return request({
    url: '/business/bid_project_workflow/' + workflowId,
    method: 'delete'
  })
}
